﻿@model ComparteTuTiempo.Models.CustomModels.CustomCambioPass

<!-- Modal contraseña -->
<div id="cambiopass" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel1" aria-hidden="true">

    <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
        <h3 id="myModalLabel1">Cambio de contraseña</h3>
    </div>
    @using (Html.BeginForm("cambiopass", "Usuarios", FormMethod.Post, new { @class = "form-horizontal" }))
    {
        @Html.ValidationSummary(true)
        <div class="modal-body">

            <div class="control-group">
                <label class="control-label" for="inputEmail">@Html.DisplayNameFor(x => x.passold)</label>
                <div class="controls">
                    @Html.PasswordFor(x => x.passold, new { @id = "inputEmail", @placeholder = "Contraseña antigua" })
                    @Html.ValidationMessageFor(model => model.passold, null, new { @class = "label label-important" })
                </div>
            </div>           
            
            <div class="control-group">
                <label class="control-label" for="inputEmail">@Html.DisplayNameFor(x => x.pass)</label>
                <div class="controls">
                    @Html.PasswordFor(x => x.pass, new { @id = "inputEmail", @placeholder = "Contraseña Nueva" })
                    @Html.ValidationMessageFor(model => model.pass, null, new { @class = "label label-important" })
                </div>
            </div>

            <div class="control-group">
                <label class="control-label" for="inputEmail">@Html.DisplayNameFor(x => x.passconf)</label>
                <div class="controls">
                    @Html.PasswordFor(x => x.passconf, new { @id = "inputEmail", @placeholder = "Confirma contraseña" })
                    @Html.ValidationMessageFor(model => model.passconf, null, new { @class = "label label-important" })
                </div>
            </div>
            
        </div>
        <div class="modal-footer">
            <button class="btn" data-dismiss="modal" aria-hidden="true">Cancelar</button>
            <input type="submit" value="Cambiar" class="btn btn-danger" />

        </div>
    }

</div>
